<template>
  <div>

    <button>给A组件发送事件</button>
  </div>
</template>

<script setup lang=ts>

import { getCurrentInstance } from "vue"
const instance = getCurrentInstance()

instance.proxy.$Bus.on("on-xiaoman", (param) => {
  console.log("=======", param);

})


</script>

<style scoped></style>